package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CampaignSetting;
import com.itheima.pojo.FoodSetting;

import java.util.List;

/**
 * @author ZhaoShengChao
 * @create 2021/8/7 21:44
 */
public interface CampaignSettingService {
    /**
     * 文件上传
     * @param campaignSettings
     */
    void add(List<CampaignSetting> campaignSettings);

    /**
     * 添加单个数据
     * @param campaignSetting
     */
    void add(CampaignSetting campaignSetting);

    /**
     * 分页查询
     * @param queryPageBean
     * @return
     */
    public PageResult pageQuery(QueryPageBean queryPageBean);


    /**
     * 删除数据
     * @param id
     */
    void deleteById(Integer id);

    /**
     * 编辑数据
     * @param campaignSetting
     */
    void edit(CampaignSetting campaignSetting);

}
